From ed675eda42fc5b2f522daa17ea446c7274e500ad Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 7 Nov 2008 17:06:21 +0000 Subject: [PATCH] x86, vmx realmode: Stack manipulation on interrupt/exception injection should respect SS size, not CS size. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/vmx/realmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vmx/realmode.c b/xen/arch/x86/hvm/vmx/realmode.c index 5d13f4e60b..9bd1f25162 100644 --- a/xen/arch/x86/hvm/vmx/realmode.c +++ b/xen/arch/x86/hvm/vmx/realmode.c @@ -69,7 +69,7 @@ static void realmode_deliver_exception( frame[1] = csr->sel; frame[2] = regs->eflags & ~X86_EFLAGS_RF; - if ( hvmemul_ctxt->ctxt.addr_size == 32 ) + if ( hvmemul_ctxt->ctxt.sp_size == 32 ) { regs->esp -= 6; pstk = regs->esp; -- 2.30.2